﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace SkWeb.RiskDB
{
	public partial class test : System.Web.UI.Page
	{

        public static int howmany(string s)
        {
            int index_b, index_i, index_n, index_g;
            long count = 0;
            for (index_b = s.IndexOf('b', 0); -1 != index_b; index_b = s.IndexOf('b', index_b+1))
            {
                for (index_i = s.IndexOf('i', index_b); -1 != index_i; index_i = s.IndexOf('i', index_i+1))
                {
                    for (index_n = s.IndexOf('n', index_i); -1 != index_n; index_n = s.IndexOf('n', index_n+1))
                    {
                        for (index_g = s.IndexOf('g', index_n); -1 != index_g; index_g = s.IndexOf('g', index_g+1))
                        {
                            count++;
                        }
                    }
                }
            }
            count = count % (10 ^ 9 + 7);
            return (int)count;
        }


      
		protected void Page_Load(object sender, EventArgs e)
		{
            int n = howmany("iinbinbing");
		}

        protected void Button1_Click(object sender, EventArgs e)
        {
           // this.Button1.Text = (i++).ToString();
        }
	}
}